package com.biz.primus.ms.search.feign;

import com.biz.primus.base.vo.PageResult;
import com.biz.primus.base.vo.PageableRequestVo;
import com.biz.primus.model.depot.vo.DepotEsIndexVo;
import com.biz.primus.model.depot.vo.DepotRespVo;
import com.biz.primus.model.depot.vo.IncrementDepotEsIndexQueryVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author defei
 * @date 2017/9/13
 */
@FeignClient(qualifier = "depotFeignClient", name = "service-depot")
public interface DepotFeignClient {

    @GetMapping("soa/depotService/findAllDepotsFRdb")
    List<DepotRespVo> findAllDepotsFRdb();

    @PostMapping("soa/depotService/createFullDepotEsVo")
    PageResult<DepotEsIndexVo> createFullDepotEsVo(@RequestBody PageableRequestVo requestVo);

    @PostMapping("soa/depotService/createIncrementDepotEsVo")
    List<DepotEsIndexVo> createIncrementDepotEsVo(@RequestBody IncrementDepotEsIndexQueryVo incrVo);
}
